//
//  UIView+ZFBadge.h
//  ZFBadgeView
//
//  Created by fyzq on 2021/9/6.
//

#import <UIKit/UIKit.h>
#import "ZFBadgeStretchView.h"
#import "ZFBadgeAnimationView.h"
NS_ASSUME_NONNULL_BEGIN

@interface UIView (ZFBadge)
/////////对应的视图
@property (nonatomic, strong,readonly) ZFBadgeStretchView *badgeView;
@property (nonatomic, strong,readonly) ZFBadgeAnimationView *badgeAnimateView;

///设置显示位置左上角开始（5，5）=>  即 距离右边 5 距离顶部5
-(void)zf_setBadgeViewPosition:(CGPoint)position;
///设置标签文字
-(void)zf_setBadgeViewText:(NSString *)text;
///设置标签文字颜色
-(void)zf_setBadgeViewTextColor:(UIColor *)textColor;
///设置标签文字大小
-(void)zf_setBadgeViewFont:(UIFont *)font;
///设置背景颜色
-(void)zf_setBadgeViewBackgroudColor:(UIColor *)color;
///设置背景颜色
-(void)zf_setBadgeViewBackgroundImage:(UIImage *)image;
///设置内边距(0,5,0,5)
-(void)zf_setBadgeViewEdgeInsets:(UIEdgeInsets )edgeInsets;



//////////////////////////////////////////////////////////////////////////////////////////////////////
///这是一个闪烁动画
///设置一个tip动画 默认白色
-(void)zf_setBadgeAnimateViewColor:(UIColor *)color;
///设置显示大小
-(void)zf_setBadgeAnimateViewSize:(CGSize)size;
///设置显示位置左上角开始（5，5）=>  即 距离右边 5 距离顶部5
-(void)zf_setBadgeAnimateViewPosition:(CGPoint)position;
///设置放大比例
-(void)zf_setBadgeAnimateViewScale:(CGFloat)scale;
///隐藏这个tipview(移除)
-(void)zf_hiddenBadgeAnimateView;
///展示
-(void)zf_showBadgeAnimateView;

@end

NS_ASSUME_NONNULL_END
